{% import '@Admin/adminFramework/config.html.twig' as config %}
<div id="header" class="navbar navbar-inverse navbar-fixed-top">
    <!-- BEGIN TOP NAVIGATION BAR -->
    <div class="navbar-inner">
        <div class="container-fluid">
            <!-- BEGIN LOGO -->
            <a class="brand" href="{{ config.index_url() }}">
                <img src="{{ config.brand() }}" />
            </a>
            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a class="btn btn-navbar collapsed" id="main_menu_trigger" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="arrow"></span>
            </a>
            <!-- END RESPONSIVE MENU TOGGLER -->
            <div class="top-nav ">
                <ul class="nav pull-right top-menu" >
                    <!-- BEGIN USER LOGIN DROPDOWN -->
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{{ config.admin_avatar() }}" alt="">
                            <span class="username">{{ config.admin_name() }}</span>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="{{config.setting_pwd()}}"><i class="icon-user"></i> 修改密码</a></li>
                            {#<li><a href="#"><i class="icon-tasks"></i> My Tasks</a></li>#}
                            {#<li><a href="#"><i class="icon-calendar"></i> Calendar</a></li>#}
                            {#<li class="divider"></li>#}
                            <li><a href="{{ config.end_url() }}"><i class="icon-signin"></i> 退出</a></li>
                        </ul>
                    </li>
                    <!-- END USER LOGIN DROPDOWN -->
                </ul>
                <!-- END TOP NAVIGATION MENU -->
            </div>
        </div>
    </div>
    <!-- END TOP NAVIGATION BAR -->
</div>